home *** CD-ROM | disk | FTP | other *** search
- unit Exmdi22;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, AdTerm, EXMDI20;
-
- type
- TForm3 = class(TForm)
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- ApdTerminal1 : TApdTerminal;
- public
- { Public declarations }
- end;
-
- var
- Form3: TForm3;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm3.FormCreate(Sender: TObject);
- begin
- {Create the terminal window on the fly...}
- ApdTerminal1 := TApdTerminal.Create(Parent);
- ApdTerminal1.Parent := Self;
- ApdTerminal1.Active := False;
- ApdTerminal1.IntegralSize := isNone;
- ApdTerminal1.Align := alClient;
-
- {...hook it up to the comport on Form1 and show it}
- ApdTerminal1.ComPort := Form1.ComPort1;
- ApdTerminal1.Active := True;
- Show;
- end;
-
- end.
-